




//------------------------------------------------------------------
//-----------当前代码为程序自动生成.-----请勿手动修改-----------------------
//------------------------------------------------------------------



using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
//using System.IO;
using System.Text;
//using CSUtils.CS;
using CSUtils;
using CSUtils.WeProtoCore;

namespace TripleJump {
	[Serializable]
	public partial class TripleJumpData : CSUtils.WeProtoCore.WeProto {
		public const string _tag = "TripleJump.TripleJumpData";
		public override CInt4 ___typeId => ___TypeId;
		public new static readonly CInt4 ___TypeId = CInt4.Get(-1,-1,-1,-1);
		public override string ___typeTag => ___TypeTag;
		public new static readonly string ___TypeTag = "tj数据";
		public override WeProto GetNewObj() {
			return new TripleJumpData();
		}
		protected override void ClearData0() {
			InitData();
			return;
			playerMaxDistance = 0;
			playerJumpLevel = 0;
			playerJetpackLevel = 0;
			playerOfflineRevenueLevel = 0;
			playerLastGetOffLineTime = 0;
			gameCount = 0;
			adsStartTime = 0;
			adsPlayCount = 0;
			continueRewardAdNoPlayCount = 0;
			mobileVibrate = false;
			mobileMusic = false;
			offlineRevenueAdIsTripleRewrad = false;
			offlineRevenueAdIsPlayAd = false;
			checkoutIsTripleRewrad = false;
			checkoutIsPlayAd = false;
			helpStep = 0;
			levelData = 0;
		}
		public void InitData() {
			playerMaxDistance = 0;
			playerJumpLevel = 1;
			playerJetpackLevel = 1;
			playerOfflineRevenueLevel = 1;
			playerLastGetOffLineTime = 0;
			gameCount = 0;
			adsStartTime = 0;
			adsPlayCount = 0;
			continueRewardAdNoPlayCount = 0;
			mobileVibrate = true;
			mobileMusic = true;
			offlineRevenueAdIsTripleRewrad = false;
			offlineRevenueAdIsPlayAd = false;
			checkoutIsTripleRewrad = false;
			checkoutIsPlayAd = false;
			helpStep = 0;
			levelData = 0;

			GetWeFieldDic();
			TempData.a_playerMaxDistance.__defaultValue = playerMaxDistance;
			TempData.a_playerJumpLevel.__defaultValue = playerJumpLevel;
			TempData.a_playerJetpackLevel.__defaultValue = playerJetpackLevel;
			TempData.a_playerOfflineRevenueLevel.__defaultValue = playerOfflineRevenueLevel;
			TempData.a_playerLastGetOffLineTime.__defaultValue = playerLastGetOffLineTime;
			TempData.a_gameCount.__defaultValue = gameCount;
			TempData.a_adsStartTime.__defaultValue = adsStartTime;
			TempData.a_adsPlayCount.__defaultValue = adsPlayCount;
			TempData.a_continueRewardAdNoPlayCount.__defaultValue = continueRewardAdNoPlayCount;
			TempData.a_mobileVibrate.__defaultValue = mobileVibrate;
			TempData.a_mobileMusic.__defaultValue = mobileMusic;
			TempData.a_offlineRevenueAdIsTripleRewrad.__defaultValue = offlineRevenueAdIsTripleRewrad;
			TempData.a_offlineRevenueAdIsPlayAd.__defaultValue = offlineRevenueAdIsPlayAd;
			TempData.a_checkoutIsTripleRewrad.__defaultValue = checkoutIsTripleRewrad;
			TempData.a_checkoutIsPlayAd.__defaultValue = checkoutIsPlayAd;
			TempData.a_helpStep.__defaultValue = helpStep;
			TempData.a_levelData.__defaultValue = levelData;
		}
		public override Dictionary<WeProto,int> GetSubWeProtoObjDic(Dictionary<WeProto,int> dic = null) {
			if (dic == null) { dic = new Dictionary<WeProto,int>(); };
			return dic;
		}
		static ATitle4 _title4;
		public override ATitle4 GetTitle4() {
			if (_title4 != null) { return _title4; }
			_title4 = new ATitle4(this, -1,-1,-1,-1, "tj数据", null, null, "", 1, EAFileType.e00_form);
			return _title4;
		}
		public static void Init_AFeild() {
			if (TempData.a_playerMaxDistance == null) {
				TempData.a_playerMaxDistance = new AField(32, "playerMaxDistance",  @"玩家最远距离", @"",  new []{typeof(int)}, new []{ECSType.eint},EFieldWeType.Optional, AMatType.e00_null );
				TempData.a_playerJumpLevel = new AField(34, "playerJumpLevel",  @"跳跃等级", @"",  new []{typeof(int)}, new []{ECSType.eint},EFieldWeType.Optional, AMatType.e00_null );
				TempData.a_playerJetpackLevel = new AField(36, "playerJetpackLevel",  @"喷气背包等级等级", @"",  new []{typeof(int)}, new []{ECSType.eint},EFieldWeType.Optional, AMatType.e00_null );
				TempData.a_playerOfflineRevenueLevel = new AField(38, "playerOfflineRevenueLevel",  @"玩家离线收益等级", @"",  new []{typeof(int)}, new []{ECSType.eint},EFieldWeType.Optional, AMatType.e00_null );
				TempData.a_playerLastGetOffLineTime = new AField(39, "playerLastGetOffLineTime",  @"玩家上次获取离线收益的时间", @"",  new []{typeof(int)}, new []{ECSType.eint},EFieldWeType.Optional, AMatType.e00_null );
				TempData.a_gameCount = new AField(40, "gameCount",  @"玩家跑的次数", @"",  new []{typeof(long)}, new []{ECSType.elong},EFieldWeType.Optional, AMatType.e00_null );
				TempData.a_adsStartTime = new AField(42, "adsStartTime",  @"玩家跑的次数", @"",  new []{typeof(long)}, new []{ECSType.elong},EFieldWeType.Optional, AMatType.e00_null );
				TempData.a_adsPlayCount = new AField(45, "adsPlayCount",  @"玩家跑的次数", @"",  new []{typeof(long)}, new []{ECSType.elong},EFieldWeType.Optional, AMatType.e00_null );
				TempData.a_continueRewardAdNoPlayCount = new AField(48, "continueRewardAdNoPlayCount",  @"连续奖励广告不播放次数", @"",  new []{typeof(long)}, new []{ECSType.elong},EFieldWeType.Optional, AMatType.e00_null );
				TempData.a_mobileVibrate = new AField(50, "mobileVibrate",  @"手机震动开关", @"",  new []{typeof(bool)}, new []{ECSType.ebool},EFieldWeType.Optional, AMatType.e00_null );
				TempData.a_mobileMusic = new AField(52, "mobileMusic",  @"手机音乐开关", @"",  new []{typeof(bool)}, new []{ECSType.ebool},EFieldWeType.Optional, AMatType.e00_null );
				TempData.a_offlineRevenueAdIsTripleRewrad = new AField(54, "offlineRevenueAdIsTripleRewrad",  @"", @"",  new []{typeof(bool)}, new []{ECSType.ebool},EFieldWeType.Optional, AMatType.e00_null );
				TempData.a_offlineRevenueAdIsPlayAd = new AField(56, "offlineRevenueAdIsPlayAd",  @"", @"",  new []{typeof(bool)}, new []{ECSType.ebool},EFieldWeType.Optional, AMatType.e00_null );
				TempData.a_checkoutIsTripleRewrad = new AField(57, "checkoutIsTripleRewrad",  @"", @"",  new []{typeof(bool)}, new []{ECSType.ebool},EFieldWeType.Optional, AMatType.e00_null );
				TempData.a_checkoutIsPlayAd = new AField(60, "checkoutIsPlayAd",  @"", @"",  new []{typeof(bool)}, new []{ECSType.ebool},EFieldWeType.Optional, AMatType.e00_null );
				TempData.a_helpStep = new AField(64, "helpStep",  @"o_helpStep", @"",  new []{typeof(int)}, new []{ECSType.eint},EFieldWeType.Optional, AMatType.e00_null );
				TempData.a_levelData = new AField(70, "levelData",  @"levelData", @"",  new []{typeof(int)}, new []{ECSType.eint},EFieldWeType.Optional, AMatType.e00_null );
			}
		}
		TempData __tmp;
		public class TempData{
			public static AField a_playerMaxDistance;
			public WeField o__playerMaxDistance;
			public static AField a_playerJumpLevel;
			public WeField o__playerJumpLevel;
			public static AField a_playerJetpackLevel;
			public WeField o__playerJetpackLevel;
			public static AField a_playerOfflineRevenueLevel;
			public WeField o__playerOfflineRevenueLevel;
			public static AField a_playerLastGetOffLineTime;
			public WeField o__playerLastGetOffLineTime;
			public static AField a_gameCount;
			public WeField o__gameCount;
			public static AField a_adsStartTime;
			public WeField o__adsStartTime;
			public static AField a_adsPlayCount;
			public WeField o__adsPlayCount;
			public static AField a_continueRewardAdNoPlayCount;
			public WeField o__continueRewardAdNoPlayCount;
			public static AField a_mobileVibrate;
			public WeField o__mobileVibrate;
			public static AField a_mobileMusic;
			public WeField o__mobileMusic;
			public static AField a_offlineRevenueAdIsTripleRewrad;
			public WeField o__offlineRevenueAdIsTripleRewrad;
			public static AField a_offlineRevenueAdIsPlayAd;
			public WeField o__offlineRevenueAdIsPlayAd;
			public static AField a_checkoutIsTripleRewrad;
			public WeField o__checkoutIsTripleRewrad;
			public static AField a_checkoutIsPlayAd;
			public WeField o__checkoutIsPlayAd;
			public static AField a_helpStep;
			public WeField o__helpStep;
			public static AField a_levelData;
			public WeField o__levelData;
		}
		public override Dictionary<int, WeField> GetWeFieldDic() {
			if (__cache.fieldIndex_fieldDic.Count > 0) { return __cache.fieldIndex_fieldDic; }
			if (__tmp == null) { __tmp = new TempData(); }
			Init_AFeild();
			if (__tmp.o__playerMaxDistance == null) {
				__tmp.o__playerMaxDistance = new WeField(this, TempData.a_playerMaxDistance);
				__tmp.o__playerJumpLevel = new WeField(this, TempData.a_playerJumpLevel);
				__tmp.o__playerJetpackLevel = new WeField(this, TempData.a_playerJetpackLevel);
				__tmp.o__playerOfflineRevenueLevel = new WeField(this, TempData.a_playerOfflineRevenueLevel);
				__tmp.o__playerLastGetOffLineTime = new WeField(this, TempData.a_playerLastGetOffLineTime);
				__tmp.o__gameCount = new WeField(this, TempData.a_gameCount);
				__tmp.o__adsStartTime = new WeField(this, TempData.a_adsStartTime);
				__tmp.o__adsPlayCount = new WeField(this, TempData.a_adsPlayCount);
				__tmp.o__continueRewardAdNoPlayCount = new WeField(this, TempData.a_continueRewardAdNoPlayCount);
				__tmp.o__mobileVibrate = new WeField(this, TempData.a_mobileVibrate);
				__tmp.o__mobileMusic = new WeField(this, TempData.a_mobileMusic);
				__tmp.o__offlineRevenueAdIsTripleRewrad = new WeField(this, TempData.a_offlineRevenueAdIsTripleRewrad);
				__tmp.o__offlineRevenueAdIsPlayAd = new WeField(this, TempData.a_offlineRevenueAdIsPlayAd);
				__tmp.o__checkoutIsTripleRewrad = new WeField(this, TempData.a_checkoutIsTripleRewrad);
				__tmp.o__checkoutIsPlayAd = new WeField(this, TempData.a_checkoutIsPlayAd);
				__tmp.o__helpStep = new WeField(this, TempData.a_helpStep);
				__tmp.o__levelData = new WeField(this, TempData.a_levelData);
			}
			__cache.fieldIndex_fieldDic[32] = __tmp.o__playerMaxDistance;
			__cache.fieldIndex_fieldDic[34] = __tmp.o__playerJumpLevel;
			__cache.fieldIndex_fieldDic[36] = __tmp.o__playerJetpackLevel;
			__cache.fieldIndex_fieldDic[38] = __tmp.o__playerOfflineRevenueLevel;
			__cache.fieldIndex_fieldDic[39] = __tmp.o__playerLastGetOffLineTime;
			__cache.fieldIndex_fieldDic[40] = __tmp.o__gameCount;
			__cache.fieldIndex_fieldDic[42] = __tmp.o__adsStartTime;
			__cache.fieldIndex_fieldDic[45] = __tmp.o__adsPlayCount;
			__cache.fieldIndex_fieldDic[48] = __tmp.o__continueRewardAdNoPlayCount;
			__cache.fieldIndex_fieldDic[50] = __tmp.o__mobileVibrate;
			__cache.fieldIndex_fieldDic[52] = __tmp.o__mobileMusic;
			__cache.fieldIndex_fieldDic[54] = __tmp.o__offlineRevenueAdIsTripleRewrad;
			__cache.fieldIndex_fieldDic[56] = __tmp.o__offlineRevenueAdIsPlayAd;
			__cache.fieldIndex_fieldDic[57] = __tmp.o__checkoutIsTripleRewrad;
			__cache.fieldIndex_fieldDic[60] = __tmp.o__checkoutIsPlayAd;
			__cache.fieldIndex_fieldDic[64] = __tmp.o__helpStep;
			__cache.fieldIndex_fieldDic[70] = __tmp.o__levelData;
			__cache.fieldName_fieldDic["playerMaxDistance"] = __tmp.o__playerMaxDistance;
			__cache.fieldName_fieldDic["playerJumpLevel"] = __tmp.o__playerJumpLevel;
			__cache.fieldName_fieldDic["playerJetpackLevel"] = __tmp.o__playerJetpackLevel;
			__cache.fieldName_fieldDic["playerOfflineRevenueLevel"] = __tmp.o__playerOfflineRevenueLevel;
			__cache.fieldName_fieldDic["playerLastGetOffLineTime"] = __tmp.o__playerLastGetOffLineTime;
			__cache.fieldName_fieldDic["gameCount"] = __tmp.o__gameCount;
			__cache.fieldName_fieldDic["adsStartTime"] = __tmp.o__adsStartTime;
			__cache.fieldName_fieldDic["adsPlayCount"] = __tmp.o__adsPlayCount;
			__cache.fieldName_fieldDic["continueRewardAdNoPlayCount"] = __tmp.o__continueRewardAdNoPlayCount;
			__cache.fieldName_fieldDic["mobileVibrate"] = __tmp.o__mobileVibrate;
			__cache.fieldName_fieldDic["mobileMusic"] = __tmp.o__mobileMusic;
			__cache.fieldName_fieldDic["offlineRevenueAdIsTripleRewrad"] = __tmp.o__offlineRevenueAdIsTripleRewrad;
			__cache.fieldName_fieldDic["offlineRevenueAdIsPlayAd"] = __tmp.o__offlineRevenueAdIsPlayAd;
			__cache.fieldName_fieldDic["checkoutIsTripleRewrad"] = __tmp.o__checkoutIsTripleRewrad;
			__cache.fieldName_fieldDic["checkoutIsPlayAd"] = __tmp.o__checkoutIsPlayAd;
			__cache.fieldName_fieldDic["helpStep"] = __tmp.o__helpStep;
			__cache.fieldName_fieldDic["levelData"] = __tmp.o__levelData;
			return __cache.fieldIndex_fieldDic;
		}

		public override void GetTableShowData() {
			GetWeFieldDic();
			if (TempData.a_playerMaxDistance.tableShow == null) {
				TempData.a_playerMaxDistance.tableShow = new ATableShow(TempData.a_playerMaxDistance, (EFieldShowType)2, 0f, 20000f, 1, 10, "");
				TempData.a_playerJumpLevel.tableShow = new ATableShow(TempData.a_playerJumpLevel, (EFieldShowType)2, 0f, 20000f, 1, 10, "");
				TempData.a_playerJetpackLevel.tableShow = new ATableShow(TempData.a_playerJetpackLevel, (EFieldShowType)2, 0f, 20000f, 1, 10, "");
				TempData.a_playerOfflineRevenueLevel.tableShow = new ATableShow(TempData.a_playerOfflineRevenueLevel, (EFieldShowType)2, 0f, 20000f, 1, 10, "");
				TempData.a_playerLastGetOffLineTime.tableShow = new ATableShow(TempData.a_playerLastGetOffLineTime, (EFieldShowType)2, 0f, 20000f, 1, 10, "");
				TempData.a_gameCount.tableShow = new ATableShow(TempData.a_gameCount, (EFieldShowType)2, 0f, 20000f, 1, 10, "");
				TempData.a_adsStartTime.tableShow = new ATableShow(TempData.a_adsStartTime, (EFieldShowType)2, 0f, 20000f, 1, 10, "");
				TempData.a_adsPlayCount.tableShow = new ATableShow(TempData.a_adsPlayCount, (EFieldShowType)2, 0f, 20000f, 1, 10, "");
				TempData.a_continueRewardAdNoPlayCount.tableShow = new ATableShow(TempData.a_continueRewardAdNoPlayCount, (EFieldShowType)2, 0f, 20000f, 1, 10, "");
				TempData.a_mobileVibrate.tableShow = new ATableShow(TempData.a_mobileVibrate, (EFieldShowType)2, 0f, 20000f, 1, 10, "");
				TempData.a_mobileMusic.tableShow = new ATableShow(TempData.a_mobileMusic, (EFieldShowType)2, 0f, 20000f, 1, 10, "");
				TempData.a_offlineRevenueAdIsTripleRewrad.tableShow = new ATableShow(TempData.a_offlineRevenueAdIsTripleRewrad, (EFieldShowType)2, 0f, 20000f, 1, 10, "");
				TempData.a_offlineRevenueAdIsPlayAd.tableShow = new ATableShow(TempData.a_offlineRevenueAdIsPlayAd, (EFieldShowType)2, 0f, 20000f, 1, 10, "");
				TempData.a_checkoutIsTripleRewrad.tableShow = new ATableShow(TempData.a_checkoutIsTripleRewrad, (EFieldShowType)2, 0f, 20000f, 1, 10, "");
				TempData.a_checkoutIsPlayAd.tableShow = new ATableShow(TempData.a_checkoutIsPlayAd, (EFieldShowType)2, 0f, 20000f, 1, 10, "");
				TempData.a_helpStep.tableShow = new ATableShow(TempData.a_helpStep, (EFieldShowType)2, 0f, 20000f, 1, 10, "");
				TempData.a_levelData.tableShow = new ATableShow(TempData.a_levelData, (EFieldShowType)2, 0f, 20000f, 1, 10, "");
			}
		}

		public override object this[int fieldIndex]{
			get{
				switch (fieldIndex) {
					case 32:
						return playerMaxDistance;
					case 34:
						return playerJumpLevel;
					case 36:
						return playerJetpackLevel;
					case 38:
						return playerOfflineRevenueLevel;
					case 39:
						return playerLastGetOffLineTime;
					case 40:
						return gameCount;
					case 42:
						return adsStartTime;
					case 45:
						return adsPlayCount;
					case 48:
						return continueRewardAdNoPlayCount;
					case 50:
						return mobileVibrate;
					case 52:
						return mobileMusic;
					case 54:
						return offlineRevenueAdIsTripleRewrad;
					case 56:
						return offlineRevenueAdIsPlayAd;
					case 57:
						return checkoutIsTripleRewrad;
					case 60:
						return checkoutIsPlayAd;
					case 64:
						return helpStep;
					case 70:
						return levelData;
				}
				return 0;
			}
			set{
			    if(false){
			        var field = __cache.fieldIndex_fieldDic[fieldIndex];
			        CLog.E("TripleJumpData", $"设置字段数据.........{field}...........{value}");
			    }
				try{
					switch (fieldIndex) {
						case 32: //ECSType.eint
							playerMaxDistance = Convert.ToInt32(value);
							break;
						case 34: //ECSType.eint
							playerJumpLevel = Convert.ToInt32(value);
							break;
						case 36: //ECSType.eint
							playerJetpackLevel = Convert.ToInt32(value);
							break;
						case 38: //ECSType.eint
							playerOfflineRevenueLevel = Convert.ToInt32(value);
							break;
						case 39: //ECSType.eint
							playerLastGetOffLineTime = Convert.ToInt32(value);
							break;
						case 40: //ECSType.elong
							gameCount = Convert.ToInt64(value);
							break;
						case 42: //ECSType.elong
							adsStartTime = Convert.ToInt64(value);
							break;
						case 45: //ECSType.elong
							adsPlayCount = Convert.ToInt64(value);
							break;
						case 48: //ECSType.elong
							continueRewardAdNoPlayCount = Convert.ToInt64(value);
							break;
						case 50: //ECSType.ebool
							mobileVibrate = Convert.ToBoolean(value);
							break;
						case 52: //ECSType.ebool
							mobileMusic = Convert.ToBoolean(value);
							break;
						case 54: //ECSType.ebool
							offlineRevenueAdIsTripleRewrad = Convert.ToBoolean(value);
							break;
						case 56: //ECSType.ebool
							offlineRevenueAdIsPlayAd = Convert.ToBoolean(value);
							break;
						case 57: //ECSType.ebool
							checkoutIsTripleRewrad = Convert.ToBoolean(value);
							break;
						case 60: //ECSType.ebool
							checkoutIsPlayAd = Convert.ToBoolean(value);
							break;
						case 64: //ECSType.eint
							helpStep = Convert.ToInt32(value);
							break;
						case 70: //ECSType.eint
							levelData = Convert.ToInt32(value);
							break;
					}
				} catch(Exception ex){
					var st = new System.Diagnostics.StackTrace(true);
					if(__cache.fieldIndex_fieldDic.TryGetValue(fieldIndex,out var field)){
					    CLog.Ex($"TripleJumpData",$"设置数据错误......field={field}.....value={value}", ex, st);
					}else{
					    CLog.Ex($"TripleJumpData",$"设置数据错误......index={fieldIndex}.....value={value}", ex, st);
					}
				}
			}
		}
		public override object GetNewFieldObj(int fieldIndex, int len1 = 0, int len2 = 0){
			//get{
				switch (fieldIndex) {
					case 32:
						return playerMaxDistance; //简单类型--int
					case 34:
						return playerJumpLevel; //简单类型--int
					case 36:
						return playerJetpackLevel; //简单类型--int
					case 38:
						return playerOfflineRevenueLevel; //简单类型--int
					case 39:
						return playerLastGetOffLineTime; //简单类型--int
					case 40:
						return gameCount; //简单类型--long
					case 42:
						return adsStartTime; //简单类型--long
					case 45:
						return adsPlayCount; //简单类型--long
					case 48:
						return continueRewardAdNoPlayCount; //简单类型--long
					case 50:
						return mobileVibrate; //简单类型--bool
					case 52:
						return mobileMusic; //简单类型--bool
					case 54:
						return offlineRevenueAdIsTripleRewrad; //简单类型--bool
					case 56:
						return offlineRevenueAdIsPlayAd; //简单类型--bool
					case 57:
						return checkoutIsTripleRewrad; //简单类型--bool
					case 60:
						return checkoutIsPlayAd; //简单类型--bool
					case 64:
						return helpStep; //简单类型--int
					case 70:
						return levelData; //简单类型--int
				}
				return 0;
			//}
		}
	}
}

